#ifndef _GLOBAL_H
#define _GLOBAL_H

#include "cmsis_os.h"


#define SYS_STATE_IDLE              (1 << 0)
#define SYS_STATE_ACQUIRE_WAITING   (1 << 1)
#define SYS_STATE_ACQUIRE_ING       (1 << 2)
#define SYS_STATE_ACQUIRE_END       (1 << 3)
#define SYS_STATE_SAVE              (1 << 4)
#define SYS_STATE_READ              (1 << 5)

#define SYS_STATE_ALL               0xFFFF

extern osEventFlagsId_t SYS_EVENTHandle;
#endif // _GLOBAL_H
